import json
class UserInfo:
    email=''
    name=''
    password=''
    qq=''
    def __init__(self,aJson):
        self.email = aJson["email"]
        self.name = aJson["name"]
        self.password = aJson["password"]
        self.qq = aJson["qq"]

    def __str__(self):
        return '姓名是：' + self.name + ',密码：' + str(self.password)+ ',邮箱：' + str(self.email)+ ',qq：' + str(self.qq)
        
fr = open("json.txt","r",encoding='utf-8')
i = json.load(fr)

user_list=[]
for user in i:
    userinfo = UserInfo(user)
    print(userinfo)
    user_list.append(userinfo)
    
for uList in user_list:
    print(uList)
    

    
